﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>


#include <Windows.h>
#include <QSystemTrayIcon>
#include <QMenu>
#include <QAction>
#include <QDebug>

#include <QHotkey>


QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    virtual void changeEvent(QEvent *event);
private slots:
    void activeTray(QSystemTrayIcon::ActivationReason reason);

    void showWindow();//显示窗体
    void showMessage();//消息框
    void showMenu();//显示菜单
private:
    Ui::MainWindow *ui;

    QSystemTrayIcon *m_systemTray;
    QMenu *m_menu;
    QAction *m_action1;
    QAction *m_action2;


};
#endif // MAINWINDOW_H
